<!--
	作者：offline
	时间：2017-03-03
	描述：banner
-->
<div class="wrap banner">
	<img src="<?php echo base_url('assets/img/img_07.png');?>" alt="公司图片">
</div>
<!--
	作者：offline
	时间：2017-03-03
	描述：主要内容中间部分
-->
<div class="main clear">
	<div class="main_le">
		<div class="left-img le">
			<img src="<?php echo base_url('assets/img/img_10.png');?>" alt="图片">
			<img src="<?php echo base_url('assets/img/images/in_02.png');?>" alt="图片">
			<img src="<?php echo base_url('assets/img/images/index11_02.png');?>" alt="图片">
			<img src="<?php echo base_url('assets/img/images/index1_02.png');?>" alt="图片">
			<img src="<?php echo base_url('assets/img/images/index_02.png');?>" alt="图片">
		</div>
		
	</div>
	<div class="main_le_in">
		<img src="<?php echo base_url('assets/img/index_14.png');?>" alt="介绍">
		<span>全国网络</span>
		<a></a>
	</div>
	<div class="main_ri">
		<ul>
			<li>
				<img src="<?php echo base_url('assets/img/img_12.png');?>" alt="图片">
			</li>
			<li>
				<img src="<?php echo base_url('assets/img/images/in_04.png');?>" alt="图片">
			</li>	
			<li>
				<img src="<?php echo base_url('assets/img/images/index11_04.png');?>" alt="图片">
			</li>
			<li>
				<img src="<?php echo base_url('assets/img/images/index1_04.png');?>" alt="图片">
			</li>
			<li>
				<img src="<?php echo base_url('assets/img/images/index_04.png');?>" alt="图片">
			</li>
			
			<span>扬帆起航</span>
			<i class="pre"></i>
			<i class="nex"></i>
		</ul>
	</div>
</div>
<!--
	作者：offline
	时间：2017-03-03
	描述：主要内容下面部分
-->
<div class="main_bt wrap clear">
	<div class="main_bt_le">
		<ul class="news">
			<h4 class="clear">
				<span class="le">新闻中心</span>
				<a href="<?php echo base_url('news.html');?>" title="点击了解更多!" class="ri">more..</a>
			</h4>
			<?php foreach($new_list as $item){?>
			<li>
				<a href="<?php echo base_url('news/show/'.$item['id'].".html");?>" title="<?php echo $item['title'];?>">
					<span style="margin-right:10px;width:190px;"><?php echo $item['title'];?></span>
					<i><?php echo date("Y年m月d日",$item['published']);?></i>
				</a>
			</li>
			<?php } ?>
		</ul>
		<div class="contact">
			<h4>
				联系我们
			</h4>
			<img src="<?php echo base_url('assets/img/img_27.png');?>" alt="图片" class="le">
			<span class="first">电话<i>400-000-4766</i></span>
			<span>在线<i>联系我们</i></span>
		</div>
	</div>
	<div class="main_bt_mi">
		<div class="flash">
			<h4>
				<span>最实汇快讯</span>
				<a href="<?php echo base_url('news.html');?>" title="点击了解更多！">more...</a>
			</h4>
			<img src="<?php echo base_url('assets/img/img_23.png');?>" alt="先进单位">
			<p>2015年的3月，一个闪亮的名词：“互联网+”在中国神州大地上横空出世，中国经济发展进入新常态，大众创业、万众创新、分享经济、</p>
		</div>
		<div class="qmeanu">
			<h4>QUICK MENU</h4>
			<ul>
				<li>
					<a href="<?php echo base_url('aboutus/honor.html');?>" title="点击了解更多！" class="img1">
						<span class="img img1"></span>
						<span>公司荣誉</span>
					</a>
				</li>
				<li>
					<a href="<?php echo base_url('aboutus/aptitude.html');?>" title="点击了解更多！" class="img2">
						<span class="img"></span>
						<span>公司资质</span>
					</a>
				</li>
				<li>
					<a href="javascript;void(0)" title="请直接联系我们" class=" img3">
						<span class="img"></span>
						<span>招   商</span>
					</a>
				</li>
				<li class="last">
					<a href="contact.html" title="点击了解更多！" class="img4">
						<span class="img"></span>
						<span>留  言</span>
					</a>
				</li>
				<span class="left"><img src="<?php echo base_url('assets/img/img_40.png');?>" alt="像左"></span>
				<span class="right"><img src="<?php echo base_url('assets/img/img_43.png');?>" alt="像右"></span>
			</ul>
		</div>
	</div>
	<div class="main_bt_bt le">
		<embed src="http://player.ku6.com/refer/zmKu8mR9zPvs-l7VXlkLDw../v.swf" width="320" height="233"></embed>
	</div>
</div>
<script type="text/javascript">
//banner轮播图
//初始化
$('.left-img img').eq(0).show().siblings('img').hide();
$('.main_ri ul li').eq(0).show().siblings('li').hide();
var timer=setInterval(move,2000),
	i=0,
	arry=['扬帆起航','拼搏向上','奋发图强','工匠精神','互相成就'];
function move(){
	i++;
	if(i>$('.main_le img').length-1){
		i=0;
	}
	$('.main_ri span').text(arry[i]);
	$('.left-img img').eq(i).fadeIn().siblings('.left-img img').fadeOut();
	$('.main_ri  ul li').eq(i).fadeIn().siblings('li').fadeOut();
}
$('.main_ri,.left-img').hover(function(){
	clearInterval(timer)
},function(){
	 timer=setInterval(move,2000)
})
$('.main_ri .pre').click(function(){
	i--;
	if(i==0){
		i=$('.main_le img').length-1;
	}
	$('.main_ri span').text(arry[i]);
	$('.left-img img').eq(i).fadeIn().siblings('.left-img img').fadeOut();
	$('.main_ri  ul li').eq(i).fadeIn().siblings('li').fadeOut();
})
$('.main_ri .nex').click(function(){
	move();
})
//新闻省略标题部分
var title=[];
$('.main_bt_le .news li a span').each(function(){
	var arrt=$(this).text();
	title.push(arrt);
})
console.log(title)
$('.main_bt_le .news li a').each(function(index,element){
	console.log(i)
	$(this).attr('title',title[index])
})
</script>